package com.leyou.item.service;

import com.leyou.Item;
import org.springframework.stereotype.Service;

import java.util.Random;

/**
 * @package com.leyou.item.service
 * @description:
 * @author: 86157
 * @date 2019/6/22 21:07
 * @version: V1.0
 */
@Service
public class ItemService {

    public Item saveItem(Item item) {
        int i = new Random().nextInt(100);
        item.setId(i);
        return item;
    }
}